package com.stars.services.impl.quartz;

import com.stars.services.MyQuartzService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.CommandLineRunner;
import org.springframework.stereotype.Component;

/**
 * @author :dj
 * @version : 1.0.0
 * @description
 * @Date 2019-10-12 09:53
 * @note
 */
@Component
public class JobSchedule implements CommandLineRunner {
    @Autowired
    private MyQuartzService myQuartzService;
    @Override
    public void run(String... args) throws Exception {
        System.out.println("任务调度开始==============任务调度开始");
        myQuartzService.timingTask();
        System.out.println("任务调度结束==============任务调度结束");
    }
}
